﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/MasterAdmin.master" AutoEventWireup="true" CodeFile="AreaAtuacao.aspx.cs" Inherits="Admin_Emprego_Default" %>

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="header_search" Runat="Server">

    <div id="navigation">

        	<div id="navigation_wrap">

                <!-- Start contact info area -->
                
                <div id="conteactinfo">                
                    <div id="logo">    
                         <a href="../Default.aspx" title="Home"><img src="../../App_Themes/Eutoliso/images/logo-orange.png" alt=""/></a>  
                    </div>    
                    <span></span>                
                </div>

                <!-- End contact info area -->


  <!-- Start navigation -->
                    <div id="navi">
                        <ul>
                            <li><a href="AreaAtuacao.aspx" title="Home">
                                <img src="../../App_Themes/Eutoliso/images/home32.png" alt=""/></a>
                            </li>
                            
                            <li><a href="#" title="Mensagens">
                                <img src="../../App_Themes/Eutoliso/images/mail32.png" alt=""/></a>
                            </li>

                            <li><a href="#" title="Configurações">
                                <img src="../../App_Themes/Eutoliso/images/spanner32.png" alt=""/></a>
                            </li>

                            <li><a href="#" title="Área de Análises">
                                <img src="../../App_Themes/Eutoliso/images/bargraph32.png" alt=""/></a>
                            </li>

                            <li><a href="#" title="Pesquisa Rápida">
                                <img src="../../App_Themes/Eutoliso/images/search32.png" alt=""/></a>
                            </li>

                            <li class="color8">
                                 <asp:LoginName ID="LoginName1" runat="server" />
                                 
                            </li>
                            
                            <li><a  title="Sair">
                                
                                <asp:LoginStatus ID="LoginStatus2" runat="server" LoginText="Entrar"  LogoutAction="Redirect" LogoutPageUrl="~/Index.aspx" LogoutImageUrl="~/App_Themes/Eutoliso/images/unlockgreen32.png" />
                                </a>
                         
                            </li>
                        </ul>
                    </div>
                <!-- End navigation -->


</div>
        
        </div>
        <!-- End navigation area -->
        <div class="clear"></div>
        <!-- Start Social & Logo area -->
        <div id="header_small">
        	<!-- Start Social area -->
            
           
        	<div class="social"> </div>
                
            </div>
            <!-- End Socialarea -->
            
            <!-- Start Logo area -->
           
            <!-- End Logo area -->
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="login_header" Runat="Server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="header_pos_menu" Runat="Server">
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
</asp:Content>
<asp:Content ID="Content6" ContentPlaceHolderID="body_pre_central" Runat="Server">

    <!-- Start H1 Title -->
    <div class="titlesnormal">
    
    	<h1>Bem-Vindo user XXX, sua ultima visita foi em: XX/XX/XXXX ----- Sair</h1>
        
        <span></span>
    <!-- End H1 Title -->
    </div>
        <div class="boxes-padding fullpadding">
            	
                

            </div> 
    
    
    

</asp:Content>
<asp:Content ID="Content7" ContentPlaceHolderID="body_central" Runat="Server">



   <!-- Start Box -->
        <div class="boxes-full">
       
        	<div class="boxes-padding fullpadding">
            	
                <!-- Start None Split Section -->
            	<div class="splitnone">
                
                	<div id="portfolio-container">
                    
                    	<!-- Start 4 column portfolio -->
                        <div class="element web">
                        
                        	 <div class="col1">           				
		                        <div class="wrapper_01">
                                       <li class="under_02"><a href="../../Index.aspx" class="active">Página Inicial</a></li>
		                               <li class="under_02"><a href="../Default.aspx">Menu Principal</a></li>
			                           <li class="under_02"><a href="Emprego.aspx">Empregos</a></li>			                           			                           			                                                                  
			                           <li class="under_02"><a href="#">Sair</a></li>
			                    </div>									
                            </div>
                        
                        </div>

                        <div class="element graphic">
                        botoes de gestao
                        
                        <br /> <br />


                        <asp:Button ID="btnNovoAreaAtuacao" runat="server" Text="Adicionar Novo" />
                        
                        
                        
                        </div> 
                                                
                        <div class="element2 web">     
                        
                        grids e info
                       	
                            <br />
                        
                       	
                            <br />
                            <asp:GridView ID="grvAreaAtuacao" runat="server" AutoGenerateColumns="False" 
                                DataSourceID="dsAreaAtuacao" BackColor="#CCCCCC" BorderColor="#999999" 
                                BorderStyle="Solid" BorderWidth="3px" CellPadding="4" CellSpacing="2" 
                                ForeColor="Black" DataKeyNames="Id_aratuacao" 
                                onselectedindexchanged="grvAreaAtuacao_SelectedIndexChanged" >
                                  <Columns>
                                     <asp:TemplateField>
                                          <ItemTemplate>
                                              <asp:Button ID="btnEdit" runat="server" CommandName="Select" Text="Editar" />
                                              &nbsp;|
                                              <asp:Button ID="btnExcluir" runat="server" CommandName="Delete" 
                                                  Text="Excluir" 
                                                  onclientclick="return confirm('Deseja realmente excluir?')" />
                                          </ItemTemplate>
                                      </asp:TemplateField>
                                    <asp:BoundField DataField="Nome_aratuacao" HeaderText="Área de Atuação" 
                                        SortExpression="Nome_aratuacao" />
                                </Columns>
                                  <FooterStyle BackColor="#CCCCCC" />
                                  <HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
                                  <PagerStyle BackColor="#CCCCCC" ForeColor="Black" HorizontalAlign="Left" />
                                  <RowStyle BackColor="White" />
                                  <SelectedRowStyle BackColor="#000099" Font-Bold="True" ForeColor="White" />
                                  <SortedAscendingCellStyle BackColor="#F1F1F1" />
                                  <SortedAscendingHeaderStyle BackColor="#808080" />
                                  <SortedDescendingCellStyle BackColor="#CAC9C9" />
                                  <SortedDescendingHeaderStyle BackColor="#383838" />
                            </asp:GridView>
                            
                            <br />

                           

                          <custom:WebWindow ID="winEditAreaAtuacao" Hide="true" WindowTitleText="" runat="server" >

                              <asp:FormView ID="frmEditAreaAtuacao" runat="server" 
                                DataSourceID="dsAreaAtuacaoUpdate" DefaultMode="Edit" 
                                onitemupdated="frmEditAreaAtuacao_ItemUpdated" 
                                onitemcommand="frmEditAreaAtuacao_ItemCommand" >
                                 <EditItemTemplate>
                                     Área de Atuação:
                                     <asp:TextBox ID="txtArAtuacao" runat="server" 
                                         Text='<%# Bind("Nome_aratuacao") %>' />                                    
                                     <asp:RequiredFieldValidator ID="reqAreaAtuacao" runat="server" 
                                         ControlToValidate="txtArAtuacao" ForeColor="Red">*Obrigatório</asp:RequiredFieldValidator>
                                     <br />
                                     <asp:Button ID="UpdateButton" runat="server" CausesValidation="True" 
                                         CommandName="Update" Text="Atualizar" onclick="UpdateButton_Click" />
                                     &nbsp;<asp:Button ID="UpdateCancelButton" runat="server" 
                                         CausesValidation="False" CommandName="Cancel" Text="Cancelar" 
                                         onclick="UpdateCancelButton_Click" />
                                 </EditItemTemplate>                                                                        
                            </asp:FormView>
                            
                          </custom:WebWindow>

                            

                             <br /> 

                             
                            <asp:FormView ID="frmTipoVeiculoInsert" runat="server" DataSourceID="dsAreaAtuacao" 
                                DefaultMode="Insert" onitemupdated="frmTipoVeiculoInsert_ItemUpdated">
             
                                <InsertItemTemplate>
                                    Área de Atuação:
                                    <asp:TextBox ID="txtArAtuacao" runat="server" 
                                        Text='<%# Bind("Nome_aratuacao") %>' />
                                    <br />                                   
                                    <asp:Button ID="InsertButton" runat="server" CausesValidation="True" 
                                       CommandName="Insert" Text="Inserir" />
                                    &nbsp;<asp:Button ID="InsertCancelButton" runat="server" 
                                        CausesValidation="False" CommandName="Cancel" Text="Cancelar" />
                                </InsertItemTemplate>
                 
                            </asp:FormView>

                            <custom:WebWindow ID="winInsertAreaAtuacao" Hide="true" WindowTitleText="" runat="server" >

                            
                            

                            </custom:WebWindow>


                             <br />


                            

                            <br />

       

                            <asp:ObjectDataSource ID="dsAreaAtuacao" runat="server" 
                                DeleteMethod="deleteEmpregoAreaAtuacao" InsertMethod="insertEmpregoAreaAtuacao" 
                                 SelectMethod="SelectAreaAtuacao" 
                                TypeName="eutoliso.br.EmpregoAreaAtuacao" 
                                UpdateMethod="updateEmpregoAreaAtuacao" >
                                <DeleteParameters>
                                    <asp:Parameter Name="id_aratuacao" Type="Int32" />
                                </DeleteParameters>
                                <InsertParameters>
                                    <asp:Parameter Name="nome_aratuacao" Type="String" />
                                </InsertParameters>
                                <UpdateParameters>
                                    <asp:Parameter Name="id_aratuacao" Type="Int32" />
                                    <asp:Parameter Name="nome_aratuacao" Type="String" />
                                </UpdateParameters>
                            </asp:ObjectDataSource>


                            <asp:ObjectDataSource ID="dsAreaAtuacaoUpdate" runat="server" 
                                SelectMethod="SelectbyIdAreaAtuacao" TypeName="eutoliso.br.EmpregoAreaAtuacao" 
                                UpdateMethod="updateEmpregoAreaAtuacao" >
                                <SelectParameters>
                                    <asp:ControlParameter ControlID="grvAreaAtuacao" Name="id_aratuacao" 
                                        PropertyName="SelectedValue" Type="Int32" />
                                </SelectParameters>
                                <UpdateParameters>
                                   <asp:ControlParameter ControlID="grvAreaAtuacao" Name="id_aratuacao" Type="Int32" />
                                </UpdateParameters>
                            </asp:ObjectDataSource>

                            <br />
                        
                        
                     
                                                                                                                                                                                                                                                                                                                 
                        	
                        </div>                                                                                                            

                        
                  
                       
                        <!-- End 4 column portfolio -->
                    
                    </div>
                
                </div>
            	<!-- End None Split Section -->

            </div>

            <span class="box-arrow"></span>
        
        </div>
        <!-- End Box -->




</asp:Content>
<asp:Content ID="Content8" ContentPlaceHolderID="body_pos_central" Runat="Server">
</asp:Content>
<asp:Content ID="Content9" ContentPlaceHolderID="body_pos_a_central" Runat="Server">
</asp:Content>
<asp:Content ID="Content10" ContentPlaceHolderID="footer_twitter_realtime" Runat="Server">
</asp:Content>
<asp:Content ID="Content11" ContentPlaceHolderID="footer_search" Runat="Server">
</asp:Content>
<asp:Content ID="Content12" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
</asp:Content>

